package com.piao.springboot_scheduled_jsoup.Entity;


public class FoodBean {
    private String picUrl;//菜的图片url
    private String courseUrl;//教程url
    private String foodName;//菜名
    private String foodMaterials;//食材

    //这里只让其自动生成GET方法是因为后面recycleView点击事件要用，构造函数已经初始化完成且不需要改动
    public String getPicUrl() {
        return picUrl;
    }

    public String getCourseUrl() {
        return courseUrl;
    }

    public String getFoodName() {
        return foodName;
    }

    public String getFoodMaterials() {
        return foodMaterials;
    }


    //generate自动生成的构造函数，选中三个参数picUrl, courseUrl, foodName, foodMaterials
    public FoodBean(String picUrl, String foodName, String foodMaterials, String courseUrl) {
        this.picUrl = picUrl;
        this.foodName = foodName;
        this.foodMaterials = foodMaterials;
        this.courseUrl = courseUrl;
    }

    //用于调试 输出这个类的属性
    @Override
    public String toString() {
        return "菜名" + foodName +"  "+
                "食材" + foodMaterials;
        //        "菜的图片url" + picUrl + "教程url" + courseUrl +
    }
}
